<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	var obj = new Object();		//空白的对象
/*
	obj.aaa = 10;				//给对象添加一个属性

	obj.show = function(){		//给对象添加一个方法
		alert(this.aaa)
	}

	obj.show();					//10
*/
	obj.name = 'Mo';
	obj.sex = '男';

	obj.showName = function (){
		alert(this.name);
	}
	obj.showSex = function (){
		alert(this.sex);
	}

	obj.showName();				//Mo
	obj.showSex();				//男
	</script>
</head>
<body>
	
</body>
</html>